/*
 * Copyright 2006 Brian Watkins
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */


package bw.weather;

import java.io.Serializable;

public class DailyForecastInfo implements Serializable
{
    static final long serialVersionUID = -1555519750519435532L;

    private int _id = 0;
    private String _dayName = "";
    private String _hiTemp = "";
    private String _lowTemp = "";
    private String _dayWeatherDesc = "";
    private String _nightWeatherDesc = "";

    public DailyForecastInfo ( int id )
    {
        _id = id;
    }
    
    public int getId () { return _id; }

    public void setDayName ( String name ) { _dayName = name; }
    public String getDayName () { return _dayName; }

    public void setHiTemp ( String temp ) { _hiTemp = temp; }
    public String getHiTemp () { return _hiTemp; }

    public void setLowTemp ( String temp ) { _lowTemp = temp; }
    public String getLowTemp () { return _lowTemp; }

    public void setDayWeatherDesc ( String desc ) { _dayWeatherDesc = desc; }
    public String getDayWeatherDesc () { return _dayWeatherDesc; }

    public void setNightWeatherDesc ( String desc ) { _nightWeatherDesc = desc; }
    public String getNightWeatherDesc () { return _nightWeatherDesc; }

    public boolean equals ( Object o )
    {
        return ( ( (DailyForecastInfo) o ).getId() == getId() );
    }

    public int hashCode ()
    {
        return ( String.valueOf( getId() ) ).hashCode();
    }
}